/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 说明：
 * Entity Name 实施场所名称
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TExePos")
public class TExePos implements Serializable{


	private static final long serialVersionUID = 1L;

	private String PosID;//场所的编号CHAR(15)PK

	private String Name;//场所名称VARCHAR(18)
	
	private String ShortID;//场所短编号CHAR(10)
	
	private TExePosCatalog TExePosCatalog;//场所类型的编号CHAR(15)PK
	
	private byte Status;//1为空闲 2为正在消费中 3为正在预订中
	
	private int PersonCapity;//可容纳人数
	
	private boolean CanBook;//是否可预订
	
	private double MinMoney;//最低消费DECIMAL(20,3)
	
	private String Des;//说明VARCHAR(512)
	
	public TExePos(){}
	
	public TExePos(String posID, String name) {
		super();
		PosID = posID;
		Name = name;
	}

	public TExePos(String posID, String name, String shortID) {
		super();
		PosID = posID;
		Name = name;
		ShortID = shortID;
	}

	@Id
	@Column(name = "PosID",length=15)
	public String getPosID() {
		return PosID;
	}


	public void setPosID(String posID) {
		PosID = posID;
	}

	@Column(name = "ShortID",length=10)
	public String getShortID() {
		return ShortID;
	}


	public void setShortID(String shortID) {
		ShortID = shortID;
	}

	@ManyToOne
	@JoinColumn(name="PosCatalogID")
	public TExePosCatalog getTExePosCatalog() {
		return TExePosCatalog;
	}

	public void setTExePosCatalog(TExePosCatalog tExePosCatalog) {
		TExePosCatalog = tExePosCatalog;
	}

	@Column(name = "PersonCapity",length=8)
	public int getPersonCapity() {
		return PersonCapity;
	}


	public void setPersonCapity(int personCapity) {
		PersonCapity = personCapity;
	}

	@Column(name = "CanBook")
	public boolean isCanBook() {
		return CanBook;
	}


	public void setCanBook(boolean canBook) {
		CanBook = canBook;
	}

	@Column(name = "Price", precision = 20, scale = 3)
	public double getMinMoney() {
		return MinMoney;
	}

	public void setMinMoney(double minMoney) {
		MinMoney = minMoney;
	}

	@Column(name = "Des",length=512)
	public String getDes() {
		return Des;
	}

	public void setDes(String des) {
		Des = des;
	}

	@Column(name = "Name",length=256)
	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	@Column(name = "Status")
	public byte getStatus() {
		return Status;
	}

	public void setStatus(byte status) {
		Status = status;
	}
}
